<%--
  Created by IntelliJ IDEA.
  User: lub_lenovo
  Date: 2017/8/16
  Time: 10:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script>

    var menu='${menu}';
    if(menu!=''){
        var $now=$('.submenu a:contains("'+menu+'")');
//    console.log(now.text());
        $('.submenu li').removeClass("active");
        $now.parent().addClass("active");
        var $parentLi=$now.parent().parent().parent();
        $parentLi.siblings().removeClass("open active");
        $parentLi.addClass("open active");
    }

</script>
</body>
</html>
